using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.Threading;

namespace Sanchay
{
    public partial class MDIParent : Form
    {
        

        public MDIParent()
        {
            //this.Hide();
            //Thread splashthread = new Thread(new ThreadStart(SplashScreen.ShowSplashScreen));
            //splashthread.IsBackground = true;
            //splashthread.Start();
            InitializeComponent();
        }

    
        private void MDIParent_Load(object sender, EventArgs e)
        {
            DashBoard mdb = new DashBoard();
            mdb.MdiParent = this;
            
            //SplashScreen.UdpateStatusText("Loading Items!!!");
            //Thread.Sleep(1000);
            //SplashScreen.UdpateStatusTextWithStatus("Success Message", TypeOfMessage.Success);
            //Thread.Sleep(1000);
            //SplashScreen.UdpateStatusTextWithStatus("Warning Message", TypeOfMessage.Warning);

            //Thread.Sleep(1000);
            //SplashScreen.UdpateStatusTextWithStatus("Error Message", TypeOfMessage.Error);
            //Thread.Sleep(1000);
            //SplashScreen.UdpateStatusText("Testing Default Message Color");
            //Thread.Sleep(1000);
            //SplashScreen.UdpateStatusText("Items Loaded..");
            //Thread.Sleep(500);

            //this.Show();
            mdb.Show();
            SplashScreen.CloseSplashScreen();
            mdb.Activate();
        }
    }
}
